package app.fugema.shop.main.order.adapter;

import com.base.common.utils.DensityUtil;
import com.base.common.utils.ViewUtils;
import com.base.common.view.adapter.connector.BaseItemMultiType;

import app.fugema.shop.R;
import app.fugema.shop.databinding.ItemOrderFooterViewBinding;
import app.fugema.shop.main.order.model.OrderPayFootBean;

public class OrderFooterMultiType extends BaseItemMultiType<OrderPayFootBean, ItemOrderFooterViewBinding> {

    @Override
    public int getItemViewType()
    {
        return TYPE_FOOT;
    }

    @Override
    public int getLayoutId()
    {
        return R.layout.item_order_footer_view;
    }

    @Override
    public void onBindViewHolder(ItemOrderFooterViewBinding binding, int position, OrderPayFootBean bean)
    {
        super.onBindViewHolder(binding, position, bean);
        ViewUtils.setViewMarginTop(binding.clOrderInfoView,DensityUtil.getDimens(R.dimen.dp_12),0 );
    }
}
